import { defineStore } from 'pinia'

interface state {
  webSite:string
}
export const defineGlobalStore = defineStore('globalStore', {
  state: () => ({
    webSite: 'ZhongDaBai',
  }),
  getters: {
    getWebSite(state: state) {
      return state.webSite
    },
  },
  actions: {
    setWebSite(state: state, webSite: string) {
      state.webSite = webSite
    },
  },
})
